<!--
 * @Author       : wfl
 * @LastEditors  : wfl
 * @description  :
 * @updateInfo   :
 * @Date         : 2022-11-14 15:08:44
 * @LastEditTime : 2023-03-31 09:21:45
-->
<script lang="ts" setup name="IkPersonModal">
defineProps({
  title: {
    type: String,
    default: '选择用户'
  },
  modelValue: {
    type: Boolean,
    default: false
  }
})
const emits = defineEmits(['update:modelValue'])
const { dialog } = useConfig()
// const { msgSuccess, msgError } = useMessage()

// 关闭弹框
const handleClose = () => {}

const value = ref()
watch(value.value, val => {
  emits('update:modelValue', val)
})
</script>

<template>
  <el-dialog
    v-model="value"
    :title="title"
    draggable
    :width="dialog.sl"
    :close-on-click-modal="false"
    @closed="handleClose"
  />
</template>
